package cn.edu.scau.cmi.wangmaoren.client.hibenate;

import org.hibernate.SessionFactory;

import cn.edu.scau.cmi.wangmaoren.hibernate.factory.HibernateSessionFactory;

public class HibernateSessionFactoryClient
{

	public static void main(String[] args)
	{
		SessionFactory hibernateSessionFactory1 = HibernateSessionFactory.getSessionFactory();
		SessionFactory hibernateSessionFactory2 = HibernateSessionFactory.getSessionFactory();

		if (hibernateSessionFactory1 == hibernateSessionFactory2)
		{
			System.out.println("这2个工厂是一样的");
		} else
		{
			System.out.println("这2个工厂不是一样的");
		}

	}

}
